/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "采购物料价格维护视图主表",TableName = "cw_djlc_wljgwh_view")]
    public partial class cw_djlc_wljgwh_view:BaseEntity
    {
        /// <summary>
       ///BOM编号
       /// </summary>
       [Display(Name ="BOM编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string bomnumber { get; set; }

       /// <summary>
       ///整车头物料号
       /// </summary>
       [Display(Name ="整车头物料号")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       public string materialnum { get; set; }

       /// <summary>
       ///父物料号
       /// </summary>
       [Display(Name ="父物料号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string parent_componentnum { get; set; }

       /// <summary>
       ///组件号
       /// </summary>
       [Display(Name ="组件号")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       public string componentnum { get; set; }

       /// <summary>
       ///MTyp
       /// </summary>
       [Display(Name ="MTyp")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       public string MTyp { get; set; }

       /// <summary>
       ///对象描述
       /// </summary>
       [Display(Name ="对象描述")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       public string description { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? num { get; set; }

       /// <summary>
       ///价格来源
       /// </summary>
       [Display(Name ="价格来源")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string pricesource { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? unitprice { get; set; }

       /// <summary>
       ///价格异议
       /// </summary>
       [Display(Name ="价格异议")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? finalprice { get; set; }

       /// <summary>
       ///调价原因
       /// </summary>
       [Display(Name ="调价原因")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       public string pricereason { get; set; }

       /// <summary>
       ///供应商代码
       /// </summary>
       [Display(Name ="供应商代码")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       public string codename { get; set; }

       /// <summary>
       ///总价
       /// </summary>
       [Display(Name ="总价")]
       [DisplayFormat(DataFormatString="27,8")]
       [Column(TypeName="decimal")]
       public decimal? totalprice { get; set; }

       /// <summary>
       ///采购价格开始
       /// </summary>
       [Display(Name ="采购价格开始")]
       [Column(TypeName="datetime")]
       public DateTime? effectivedatestart { get; set; }

       /// <summary>
       ///采购价格结束
       /// </summary>
       [Display(Name ="采购价格结束")]
       [Column(TypeName="datetime")]
       public DateTime? effectivedateend { get; set; }

       /// <summary>
       ///降幅
       /// </summary>
       [Display(Name ="降幅")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? decrease { get; set; }

       /// <summary>
       ///返利
       /// </summary>
       [Display(Name ="返利")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? rabate { get; set; }

       /// <summary>
       ///返利条件
       /// </summary>
       [Display(Name ="返利条件")]
       [MaxLength(2000)]
       [Column(TypeName="varchar(2000)")]
       public string rebateconditions { get; set; }

       /// <summary>
       ///降幅金额
       /// </summary>
       [Display(Name ="降幅金额")]
       [DisplayFormat(DataFormatString="38,8")]
       [Column(TypeName="decimal")]
       public decimal? decreaseprice { get; set; }

       /// <summary>
       ///返利金额
       /// </summary>
       [Display(Name ="返利金额")]
       [DisplayFormat(DataFormatString="38,8")]
       [Column(TypeName="decimal")]
       public decimal? rabateprice { get; set; }

       /// <summary>
       ///创建日期
       /// </summary>
       [Display(Name ="创建日期")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///物料主表UUID
       /// </summary>
       [Key]
       [Display(Name ="物料主表UUID")]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_djlc_wlzb_id { get; set; }

       /// <summary>
       ///价格维护UUID
       /// </summary>
       [Display(Name ="价格维护UUID")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? cw_djlc_jgwh_id { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       public int? status { get; set; }

       /// <summary>
       ///BOM价格开始
       /// </summary>
       [Display(Name ="BOM价格开始")]
       [Column(TypeName="datetime")]
       public DateTime? priceeffectivedatestart { get; set; }

       /// <summary>
       ///BOM价格结束
       /// </summary>
       [Display(Name ="BOM价格结束")]
       [Column(TypeName="datetime")]
       public DateTime? priceeffectivedateend { get; set; }

       /// <summary>
       ///流程主表UUID
       /// </summary>
       [Display(Name ="流程主表UUID")]
       [Column(TypeName="uniqueidentifier")]
       public Guid? cw_djlc_djzb_id { get; set; }

       /// <summary>
       ///新的价格
       /// </summary>
       [Display(Name ="新的价格")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       public decimal? newunitprice { get; set; }

       
    }
}